﻿using System.IO;

namespace WardenMonitor
{

    public static class Log
    {
        private static readonly StreamWriter _writer =
            new StreamWriter(new FileStream("WardenMonitor.log", FileMode.Create));

        public static void WriteLine(string line)
        {
            _writer.WriteLine(line);
            _writer.Flush();
        }

        public static void WriteLine(string format, params object[] args)
        {
            _writer.WriteLine(format, args);
            _writer.Flush();
        }

        public static void WriteLine()
        {
            _writer.WriteLine();
            _writer.Flush();
        }

        public static void Write(string data)
        {
            _writer.Write(data);
            _writer.Flush();
        }

    }

}